<!DOCTYPE html>
<html>
<head>
    <title>Javascript中点击事件方法一</title>
</head>
<body>
<button id="btn" onclick="btn()">click</button>
<!--引入jq代码-->
<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript">
   function btn() {
        alert("1111")
   }
</script>
</body>
</html>